Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.ecm.webapp.seam.debug.action--filters

This contribution is part of XML component org.nuxeo.ecm.webapp.seam.debug.action inside nuxeo-platform-webapp-base-5.8.jar

Extension Point

Extension point filters of component ActionService.

Contributed Items

  • <filter id="restoreVersionDisplay">
          <rule grant="true">
            <condition>#{deleteActions.restoreActionDisplay()}
            </condition>
          </rule>
        </filter>
  • <filter id="devModeEnabledForAdmin">
          <rule grant="true">
            <condition>#{seamReload.getCanTriggerFlush()}</condition>
          </rule>
        </filter>
  • <filter id="seamHotReloadIsEnabled">
          <rule grant="true">
            <condition>#{seamHotReloadIsEnabled}</condition>
          </rule>
        </filter>
  • <filter id="hasSubscriptions">
          <rule grant="true">
            <condition>#{subscriptionAction.getSelectedNotifications().size() &gt; 0}</condition>
          </rule>
        </filter>
  • <filter id="hasNoSubscriptions">
          <rule grant="true">
            <condition>#{subscriptionAction.getSelectedNotifications().size() == 0}</condition>
          </rule>
        </filter>
  • <filter id="canSubscribe">
          <rule grant="false">
            <type>Domain</type>
            <type>WorkspaceRoot</type>
          </rule>
        </filter>
  • <filter id="documentHasBlobs">
          <rule grant="true">
            <condition>
              #{popupHelper.isDocumentHasBlobs(document)}
            </condition>
          </rule>
        </filter>
  • <filter id="hasNote">
          <rule grant="true">
            <schema>note</schema>
          </rule>
        </filter>
  • <filter id="notHasNote">
          <rule grant="false">
            <schema>note</schema>
          </rule>
        </filter>
  • <filter id="denyForFile">
          <rule grant="false">
            <type>File</type>
          </rule>
        </filter>
  • <filter id="hasDublincore">
          <rule grant="true">
            <schema>dublincore</schema>
          </rule>
        </filter>
  • <filter id="canToggleLayoutToEditMode">
          <documentation>
            <p>
              Filter used by the "toggleableLayoutWithForms" widget type
              to check
              wether the "edit" button should be displayed.
            </p>
            <p>
              This filter is a combination of default filters "edit" and
              "mutable_document" usually used to control rendering of the "edit" tab
              on document views.
            </p>
            @since 5.6
          </documentation>
          <rule grant="true">
            <permission>Write</permission>
          </rule>
          <rule grant="false">
            <facet>Immutable</facet>
          </rule>
          <rule grant="false">
            <condition>
              document.getCurrentLifeCycleState().equals("deleted")
            </condition>
          </rule>
        </filter>

    @since 5.6

XML Source

<extension point="filters" target="org.nuxeo.ecm.platform.actions.ActionService">

    <filter id="restoreVersionDisplay">
      <rule grant="true">
        <condition>#{deleteActions.restoreActionDisplay()}
        </condition>
      </rule>
    </filter>

    <filter id="devModeEnabledForAdmin">
      <rule grant="true">
        <condition>#{seamReload.getCanTriggerFlush()}</condition>
      </rule>
    </filter>

    <filter id="seamHotReloadIsEnabled">
      <rule grant="true">
        <condition>#{seamHotReloadIsEnabled}</condition>
      </rule>
    </filter>

    <filter id="hasSubscriptions">
      <rule grant="true">
        <condition>#{subscriptionAction.getSelectedNotifications().size() &gt; 0}</condition>
      </rule>
    </filter>

    <filter id="hasNoSubscriptions">
      <rule grant="true">
        <condition>#{subscriptionAction.getSelectedNotifications().size() == 0}</condition>
      </rule>
    </filter>

    <filter id="canSubscribe">
      <rule grant="false">
        <type>Domain</type>
        <type>WorkspaceRoot</type>
      </rule>
    </filter>

    <filter id="documentHasBlobs">
      <rule grant="true">
        <condition>
          #{popupHelper.isDocumentHasBlobs(document)}
        </condition>
      </rule>
    </filter>

    <filter id="hasNote">
      <rule grant="true">
        <schema>note</schema>
      </rule>
    </filter>

    <filter id="notHasNote">
      <rule grant="false">
        <schema>note</schema>
      </rule>
    </filter>

    <filter id="denyForFile">
      <rule grant="false">
        <type>File</type>
      </rule>
    </filter>

    <filter id="hasDublincore">
      <rule grant="true">
        <schema>dublincore</schema>
      </rule>
    </filter>

    <filter id="canToggleLayoutToEditMode">
      <documentation>
        <p>
          Filter used by the "toggleableLayoutWithForms" widget type
          to check
          wether the "edit" button should be displayed.
        </p>
        <p>
          This filter is a combination of default filters "edit" and
          "mutable_document" usually used to control rendering of the "edit" tab
          on document views.
        </p>
        @since 5.6
      </documentation>
      <rule grant="true">
        <permission>Write</permission>
      </rule>
      <rule grant="false">
        <facet>Immutable</facet>
      </rule>
      <rule grant="false">
        <condition>
          document.getCurrentLifeCycleState().equals("deleted")
        </condition>
      </rule>
    </filter>

  </extension>